package com.community.charge.mapper;

import com.community.charge.domain.vo.ChargeBuildingVo;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface BuildingVoMapper {

    //根据社区绑定楼宇下拉框
    @Select("select building_id as buildingId, name from building where community_id=#{id}")
    List<ChargeBuildingVo> getBuildingVoNameAndId(Integer id);
    @Select("select building_id as buildingId, name from building")
    List<ChargeBuildingVo> getBuildingVoIdAndName();
}
